import request from '/@/utils/request.ts';

export function getSysStationList(params: object) {
	return request({
		url: 'core/sysStation/page',
		method: 'get',
		params,
	});
}

export function addSysStation(data: object) {
	return request({
		url: 'core/sysStation/',
		method: 'POST',
		data: data,
	});
}

export function getSysStationInfo(stationId: any) {
	return request({
		url: `core/sysStation/${stationId}`,
		method: 'GET',
	});
}

export function editSysStation(data: object, stationId: any) {
	return request({
		url: `core/sysStation/${stationId}`,
		method: 'PUT',
		data: data,
	});
}

export function delSysStation(stationId: any) {
	return request({
		url: `core/sysStation/${stationId}`,
		method: 'DELETE',
	});
}
